const {baseService2} =require('../../baseService2')
const {surface_rank_model} =require('../../../dao/model/model')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class rankServiceError extends Error {
    constructor(error,message='rankServiceError'){
        super()
        this.error = error
        this.message=message
    }
}


class rankService extends baseService2 {
    static ins = new rankService()
    constructor(){
        super(surface_rank_model,rankServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new rankService()
        }
    }

 

}


module.exports={rankService}
